import {
    http,
    defaultSuccess,
    defaultError
}
    from "@/plugins/axios";
export default {
    files(id, tableType, success = defaultSuccess, error = defaultError) {
        http.get("/common/files/" + id + "/" + tableType).then(success).catch(error)
    },
    delFile(id,success = defaultSuccess, error = defaultError){
        http.get("/file/delete/" + id).then(success).catch(error)
    }
}